<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/11/30
 * Time: 18:26
 */
namespace app\qrcode\controller;

use think\facade\Request;
use app\admin\controller\AdminBase;

class Admin extends AdminBase
{
    public function index()
    {
        //require_once MODULE_PATH.'/qrcode/helper/phpqrcode/phpqrcode.php';

        $data = Request::request('data');

        $url = urldecode($data);
        \QRcode::png($url);
    }
}